export function tranlateListTree(list, rootvalue) {
  const arr = []
  list.forEach(item => {
    if (item.pid === rootvalue) {
      // console.log('根部门', item)
      const children = tranlateListTree(list, item.id)
      // item.children = children
      arr.push(item)
      if (children.length) { item.children = children }
    }
  })
  return arr
}
